<?php

error_reporting(E_ALL | E_STRICT);

if (!defined("PHPUnit_MAIN_METHOD")) {
	define("PHPUnit_MAIN_METHOD", "Alltests::main");
	chdir(dirname(__FILE__));
}

require_once("library/TestConfig.php");

require_once("library/TestHelper.php");

require_once("PHPUnit/TextUI/TestRunner.php");

require_once("PHPUnit/Framework/TestSuite.php");

require_once 'PHPUnit/Framework/TestResult.php';

require_once 'library/PostPrintTestListener.php';

require_once("units/AllTests.php");

class AllTests{
	
	public static function main(){
		$parameters = array();
		
		PHPUnit_TextUI_TestRunner::run(self::suite(),$parameters);
	}
	
	public static function suite(){
		$suite = new PHPUnit_Framework_TestSuite("postprint");
		$suite->addTest(units_AllTests::suite());
		
//		$result = new PHPUnit_Framework_TestResult();
//		$result->addListener(new PostPrintTestListener());
//		$suite->run($result);
		
		return $suite;
	}
}

if (PHPUnit_MAIN_METHOD == "Alltests::main") {
	AllTests::main();
}
